﻿@using Controllers
@{
    var func=new MyFunc();
}
<!DOCTYPE HTML>
<html lang="en-US">
<head>
@Html.Partial("_top")
</head>
<body>
<div class="wrap pb_5">
@Html.Partial("_header")
	@{var clist=func.GetCList(classid:ViewBag.model.ID);}
	@foreach(var citem in clist){
	<div class="p10">
		<h1 class="tit_1"><span class="current">@citem.title</span><a class="more current" href="/list/@citem.ID">MORE>></a></h1>
		<ul class="list_1 mt10">
		@{var list=func.GetList(8,citem.ID,"");}
		
                    @for(var i=0;i<list.Count;i++){	
                      var item=list[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
		</ul>
	</div>
	}
	
	<div id="copyright">
		@Html.Raw(ViewBag.model.copyright)
	</div>
	
</div>
	
<script type="text/javascript">
$(function () {
    $(".nav ul li a[href='/list/@ViewBag.model.ID']").addClass("current");
    $(".nav ul li a[href='/list/@ViewBag.model.classid']").addClass("current");
	
    var tag=$(".nav_1 li a[href='/list/@ViewBag.model.ID']").closest("li");

	tag.addClass("current");
})
</script>
@Html.Partial("_footer")
</body>
</html>